package com.fzn.spring5.bean;

/**
 * @author fzn
 * @date 2022/2/20
 * @apiNote
 *      员工类
 */
public class Emp {
    private String name;
    private String gender;
    /**
     * 员工属于某一个部门
     */
    private Dept dept;

    public Dept getDept() {
        return dept;
    }

    public void setDept(Dept dept) {
        this.dept = dept;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public void add() {
        System.out.println(name+"::"+gender+"::"+dept);
    }
}
